<?php
/* -------------------------------------------------------------------------------------
* 	ID:						$Id: new_option.php 11 2013-09-21 11:43:11Z phone.mueller@googlemail.com $
* 	Letzter Stand:			$Revision: 11 $
* 	zuletzt geaendert von:	$Author: siekiera $
* 	Datum:					$Date: 2013-09-21 11:43:11 +0000 (Sat, 21 Sep 2013) $
*
* 	SEO:mercari by Siekiera Media
* 	http://www.seo-mercari.de
*
* 	Copyright (c) since 2011 SEO:mercari
* --------------------------------------------------------------------------------------
* 	based on:
* 	(c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
* 	(c) 2002-2003 osCommerce - www.oscommerce.com
* 	(c) 2003     nextcommerce - www.nextcommerce.org
* 	(c) 2005     xt:Commerce - www.xt-commerce.com
*
* 	Released under the GNU General Public License
* ----------------------------------------------------------------------------------- */

echo draw_form('new_option', 'categories.php', '', 'post', 'id="option_form"');
?>
	<table width="100%" cellpadding="6">
	<?php
		$languages = get_languages();
		for ($i = 0, $n = sizeof($languages); $i < $n; $i ++) {
			echo '	<tr>
						<td colspan="2">
							'.image('../lang/'.$languages[$i]['directory'].'/'.$languages[$i]['image'], $languages[$i]['name']).' <b>'.$languages[$i]['name'].'</b>
						</td>
					</tr>';
			echo '	<tr>
						<td width="20%">Name:</td>
						<td><input type="text" name="option_name['.$languages[$i]['id'].']" size="20"></td>
					</tr>';		
			echo '	<tr>
						<td valign="top">Beschreibung:</td>
						<td><textarea name="option_desc['.$languages[$i]['id'].']" cols="50" rows="4" style="width:95%"></textarea></td>
					</tr>';
			echo '	<tr><td colspan="2" style="border-bottom: 1px dotted #ccc">&nbsp;</td></tr>';
		}
		?>
		<tr>
			<td></td>
			<td>
				<button type="button" class="button" onclick="xajax_saveNewOption(xajax.getFormValues('option_form'))"><?php echo BUTTON_SAVE ?></button>
			</td>
		</tr>
	</table>
</form>